package org.dromara.study.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.checkerframework.checker.units.qual.A;
import org.dromara.common.core.domain.R;
import org.dromara.common.mybatis.core.page.PageQuery;
import org.dromara.study.domain.entity.Book;
import org.dromara.study.domain.vo.BookVo;
import org.dromara.study.mapper.BookMapper;
import org.dromara.study.service.BookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class BookServiceImpl extends ServiceImpl<BookMapper, Book> implements BookService {

    @Autowired
    private BookMapper bookMapper;

    @Override
    public Page<BookVo> getPage(PageQuery pageQuery, BookVo bookVo) {
        return bookMapper.getPage(pageQuery.build(), bookVo);
    }
}
